﻿using System.Threading.Tasks;
using WinRT.SIP.UILogic.Models;

namespace WinRT.SIP.UILogic.Repositories
{
    public class NetworkSettingsRepository : INetworkSettingsRepository
    {
        public NetworkSettings Load()
        {
            return null;
        }

        public void Save(NetworkSettings networkSettings)
        {
            
        }

        public async Task<NetworkSettings> LoadAsync()
        {
            var task = Task<NetworkSettings>.Run(() => Load());
            await task;
            return task.Result;
        }

        public async Task SaveAsync(NetworkSettings networkSettings)
        {
            await Task.Run(() => Save(networkSettings));
        }
    }
}
